$(document).ready(function () {
    $("#uploadFile").click(function () {
        $.ajax({
            url: "/file/upload",
            async: false,
            cache: false,
            type: "post",
            dataType: 'json',
            data:{
            },
            success:function (data) {
                if (data.success){
                    alert(data.msg);
                }else {
                    alert(data.msg);
                    window.location.href = "/front/file-add";
                }
            }
        })
    })
})